package com.wzy.level.user.userDao;

import com.wzy.Jdbc封装.pojo.News_user;
import com.wzy.level.byPage.byPageDto.ByPage;

import java.util.List;

public interface userDao {
    //查询所有
    public List<News_user> selectAll();

    public News_user selectById(int id);

    //分页查询
    public List<News_user> selectByPage(ByPage byPage);


    //根据用户名进行查询
    public News_user selectByUsername(String username);
    //增
    public int insert(News_user user );

    //改
    public int update(News_user user);

    //删
    public int deleteById(News_user user);

    public int deleteByName(News_user user);
}
